# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libjcat
pkgver=0.1.10
pkgrel=0
pkgdesc="Library for reading and writing Jcat files"
url="https://github.com/hughsie/libjcat"
arch="all"
license="LGPL-2.1-or-later"
makedepends="meson glib-dev json-glib-dev gnutls-dev gpgme-dev
	libgpg-error-dev gtk-doc help2man gnutls-utils gobject-introspection-dev
	vala py3-setuptools"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/hughsie/libjcat/archive/$pkgver/libjcat-$pkgver.tar.gz"
build() {
	abuild-meson \
		-Dgtkdoc=true \
		-Dcli=false \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
437a792d438657e5b92dfab332d16eb430d8c3be2a8f0d82f1f1cfd5d3a0db1a0a1175dabb87dcd57ac7cddc8017e27c00f7a959cb57244a1e63fb963cae445b  libjcat-0.1.10.tar.gz
"
